<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title> 循环语句</title>
</head>
<body>

</body>
<script>
    /*
   //在页面输出10行hello  用for循环实现
    for(var i=1;i<=10;i++)
    {
     document.write("Hello<br/>");
    }
   
    //用while语句实现输出10行hello
    var i=1;
    while(i<=10)
    {
      document.write("Hello World<br/>");
      i++;
   }

   */
    //do-while语句
 var i=1;
    do
    {
        document.write("Hello world<br/>");
        i++;
    }
    while(i<=10)
    
   </script>
</html>